package org.openkanban.jbehave;

import static org.junit.Assert.assertTrue;

import org.jbehave.core.annotations.Given;
import org.jbehave.core.annotations.Then;
import org.jbehave.core.annotations.When;

public class LoginSteps {

	boolean welcome;
	boolean loginOpened;
	String email;
	String password;

	boolean loginClicked;

	public LoginSteps() {
	}

	@Given("a welcome screen")
	public void theWelcomeScreenIsShown() {
		welcome = true;
	}

	@When("a user opens the login form")
	public void userOpensTheLoginForm() {
		loginOpened = true;
	}

	@When("user enters his email address")
	public void userEntersHisEmailAddress() {
		email = "max@mustermann.de";
	}

	@When("user enters his password")
	public void userEntersHisPassword() {
		password = "mm";
	}

	@When("user clicks the login button")
	public void userClicksTheLoginButton() {
		loginClicked = true;
	}

	@Then("the board view should open")
	public void openBoardView() {
		assertTrue(loginClicked);
	}

}
